package club.ruanx.spider.common.message;

import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.SubscribableChannel;

/**
 * @author 阮胜
 * @date 2018/11/28 20:33
 */
public interface SpiderMessageClient {

    String INPUT = "spider_input";

    String OUTPUT = "spider_output";

    @Input(INPUT)
    SubscribableChannel input();

    @Output(OUTPUT)
    MessageChannel output();
}
